Event

class Event : Serializable

Generic Event type used to notify an `observer`.

Constructors

Event
Link copied to clipboard
open fun Event(@NonNull() type: String, @NonNull() data: Value)

Functions

equals
Link copied to clipboard
open fun equals(object: Any): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

data
Link copied to clipboard
private val data: Value
type
Link copied to clipboard
private val type: String

Extensions

getCameraChangedEventData
Link copied to clipboard
fun Event.getCameraChangedEventData(): CameraChangedEventData
Get the parsed event data for camera changed event.
getMapIdleEventData
Link copied to clipboard
fun Event.getMapIdleEventData(): MapIdleEventData
Get the parsed event data for map idle event.
getMapLoadedEventData
Link copied to clipboard
fun Event.getMapLoadedEventData(): MapLoadedEventData
Get the parsed event data for map loaded event.
getMapLoadingErrorEventData
Link copied to clipboard
Get the parsed event data for map loading error event.
getRenderFrameFinishedEventData
Link copied to clipboard
Get the parsed event data for render frame finished event.
getRenderFrameStartedEventData
Link copied to clipboard
Get the parsed event data for render frame started event.
getResourceEventData
Link copied to clipboard
fun Event.getResourceEventData(): ResourceEventData
Get the parsed event data for resource-request event.
getSourceAddedEventData
Link copied to clipboard
fun Event.getSourceAddedEventData(): SourceAddedEventData
Get the parsed event data for source added event.
getSourceDataLoadedEventData
Link copied to clipboard
Get the parsed event data for source data loaded event.
getSourceRemovedEventData
Link copied to clipboard
fun Event.getSourceRemovedEventData(): SourceRemovedEventData
Get the parsed event data for source removed event.
getStyleDataLoadedEventData
Link copied to clipboard
Get the parsed event data for style data loaded event.
getStyleImageMissingEventData
Link copied to clipboard
Get the parsed event data for style missing event.
getStyleImageUnusedEventData
Link copied to clipboard
Get the parsed event data for style image unused event.
getStyleLoadedEventData
Link copied to clipboard
fun Event.getStyleLoadedEventData(): StyleLoadedEventData
Get the parsed event data for style loaded event.